#ifndef REGULARSHAPEWIDGET_H
#define REGULARSHAPEWIDGET_H

#include <BHXJControls3D/bhxjglbasewidget.h>
#include<BHXJRegularModel/bhxjglpie.h>
#include<BHXJRegularModel/bhxjglcone.h>
# include<BHXJRegularModel/bhxjglcolumn.h>
# include<BHXJRegularModel/bhxjglsphere.h>
# include<BHXJRegularModel/bhxjglpipecircle.h>
#include<BHXJControls3D/bhxjglspeedometer.h>
#include<BHXJGLHelper/bhxjglmodel.h>
#include<BHXJGLHelper/bhxjglttf.h>


class RegularShapeWidget : public BHXJGLBaseWidget
{
    Q_OBJECT
public:
    explicit RegularShapeWidget(QWidget *parent = nullptr);
    virtual ~RegularShapeWidget() override;

    bool PaintLine(){return _PaintLine;}
    void setPaintLine(bool value){_PaintLine=value;this->update();}

    bool PaintNormal(){return _PaintNormal;}
    void setPaintNormal(bool value){_PaintNormal=value;this->update();}


signals:

protected:
    bool _PaintLine=false;
    bool _PaintNormal=false;
    void initializeGL() override;
    void paintGL() override;
    void resizeGL( int width, int height ) override;

    BHXJGLShader shader1;

    BHXJGLPie *pie;
    BHXJGLCone *cone;
    BHXJGLColumn *column;
    BHXJGLSphere *sphere;
    BHXJGLPipeCircle *pipecircle;
public slots:
};

#endif // REGULARSHAPEWIDGET_H
